package com.stu.control;

import com.stu.beans.Student;
import com.stu.service.StuService;

import java.util.List;

public class StuControl {
    private StuService stuService = new StuService();
    public boolean addStu(Student student) {
        return stuService.addStu(student);
    }

    public List<Student> queryStu(Student student) {
        return stuService.queryStu(student);
    }

    public List<Student> queryAll() {
        return stuService.queryAll();
    }

    public boolean modifyStu(Student student) {
        return stuService.modifyStu(student);
    }
}
